<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8"/>
    <title>新余学院后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="css/base.css"/>
    <!-- <script type="text/javascript">
	window.onload=function(){
		
		if(window.parent != window){// 如果是在框架中
			//就让框架页面跳转到登陆页面
			window.parent.location.href = '${pageContext.request.contextPath}/login.jsp';
		}
		
	};
</script> -->
</head>

<body>
<div class="header Cgreen">
    <div class="wrapper clearfix">
        <h1>新余学院后台管理系统</h1>
        <span class="QRspan"> <i class="iconfont">&#xe61b;</i> <span>关注公众号</span>
				<img class="QRimg" src="picture/lwk.jpg"/>
			</span>
    </div>
</div>
<div class="content">
    <div class="wrapper">
        <img class="bg1" src="picture/bg1.png"/>
        <div class="loginBox">
            <div class="logo"></div>
            <div class="formDiv">
                <form
                        action="${pageContext.request.contextPath}/admin_login.action"
                        method="post" id="from1">
                    <input type="hidden" value="1" name="aid"/> <label class="user">
                    <input type="text" name="username" placeholder="请输入用户名"/> <i
                        class="iconfont">&#xe614;</i>
                </label> <label class="pwd"> <input type="password"
                                                    placeholder="请输入密码" name="password"/> <i
                        class="iconfont">&#xe615;</i>
                </label>
                    <div class="pwdOper">
							<span class="remember"> <label> <input
                                    type="checkbox" name="auto" value="true" class="hide"/> <span class="checkbox"></span>
									记住密码
							</label>
							</span> <a class="forget Cred" href="javascript:;">忘记密码?</a>
                    </div>
                    <a id="a1" class="submit"/>登录</a>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    <div class="wrapper">
			<span>Copyright © 新余学院 2010-2019 版权所有 京ICP备1616212043号-1 京公网备案
				161621204300101号</span>
    </div>
</div>
</body>
<script>
    window.onload = function () {
        if (window.parent != window) {// 如果是在框架中
            //就让框架页面跳转到登陆页面
            window.parent.location.href = '${pageContext.request.contextPath}/login.jsp';
        }
        setContentHeight();
        window.onresize = setContentHeight;

        function setContentHeight() {
            var windowHeight = document.documentElement.clientHeight;
            document.getElementsByClassName('content')[0].style.height = windowHeight
                - 102 - 138 + 'px';
        }

        document.getElementById("a1").onclick = function () {
            document.getElementById("from1").submit();
        }

    }
</script>

</html>